package com.kingint.mbg.ser.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.kingint.mbg.dto.BackQueryParam;
import com.kingint.mbg.dto.rushHouse.RushHouseBackParam;
import com.kingint.mbg.dto.rushHouse.RushHouseFrontParam;
import com.kingint.mbg.ser.entity.SerRushHouse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 发布赶房表 Mapper 接口
 * </p>
 *
 * @author wxh
 * @since 2021-01-07
 */
public interface SerRushHouseMapper extends BaseMapper<SerRushHouse> {

    /**
     * 查询对应状态的工单信息
     * @param hotelId
     * @param userId
     * @param status
     * @return
     */
    List<RushHouseFrontParam> getRushHouseList(@Param("hotelId") Integer hotelId, @Param("userId") Long userId, @Param("status") Integer status);//待确认

    /**
     * 分页查询相关额赶房相关的信息
     * @param page
     * @param queryParam
     * @return
     */
    IPage<RushHouseBackParam> getBackRushList(IPage<RushHouseBackParam> page,@Param("query") BackQueryParam queryParam);

}
